package com.yami.shop.mystery.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.mystery.common.model.MysteryBoxOpenRecord;
import com.yami.shop.mystery.common.model.MysteryBoxOrder;

import java.util.List;

/**
 * @author wxf
 * @date 2023/4/14 11:57
 */
public interface MysteryBoxOpenRecordService extends IService<MysteryBoxOpenRecord> {

    /**
     *  通过盲盒订单，初始化开盲盒记录 (单个用户)
     *
     * @param mysteryBoxOrder
     * @return
     */
    void initMysteryBoxOpenRecord(MysteryBoxOrder mysteryBoxOrder);

    /**
     *  通过盲盒订单，初始化开盲盒记录 (多个用户)
     *
     * @param list
     */
    void initMysteryBoxOpenRecord(List<MysteryBoxOrder> list);
}
